hcf of 3 numbers in python